﻿using System.Collections.Generic;
using System.ServiceModel;
using Koln.Domain;

namespace Koln.Service.Contract
{
    [ServiceContract]
    public interface IBananaService : IAbstractService
    {
        [OperationContract]
        Banana CreateBanana(string name);

        [OperationContract]
        Banana UpdateOrder(Banana bananaToUpdate, string newName);

        [OperationContract]
        void DeleteBanana(Banana bananaToDelete);

        [OperationContract]
        IList<Banana> ListBananas();    
    }
}
